package com.twenty.seven.common;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author 001
 * @Date 2020/1/8 17:44
 * @TODO
 **/
@Data
public class ResultJson implements Serializable {

    private static final long serialVersionUID = 1L;

    private int code;
    private String message;

    private Object data;

    public ResultJson() {

    }

    public ResultJson(int messageCode, String message) {
        this.code = messageCode;
        this.message = message;
    }

    public ResultJson(int messageCode, String message,Object obj) {
        this.code = messageCode;
        this.message = message;
        this.data = obj;
    }

}
